KE.show({
				id : 'content',
				resizeMode : 1,
				imageUploadJson : 'image!uploadImageForEditor.action',
				directory:"uploadfile/singlePage",
				width:800,
				height:400
			});
$(function(){
	var columnId=$.query.get("singlePage.columnId");
	$("#columnId").val(columnId);
});
function check()
{
   $("#name,#categoryId,#url").css("border","");
   var title=$.trim($("#title").val());
   var content=$.trim($("#content").val());
   var sort=$.trim($("#sort").val());
   if(title.length<1||title.length>201)
   {
     $("#title").css({"border": "2px solid red"});
      alert("标题的长度为1~20");
      return false;
   }
   var	reg=/^[0-9]+$/;
		if(!reg.test(sort))
		{
			 alert("必需输入数字");
			  $("#sort").css({"border": "2px solid red"});
			  return false;
		}
   if(content.length<1||content.length>5000)
   {
      alert("内容的长度在1~5000");
      return false;
   }
  return true;
};